// index.tsx
import React from 'react';
import * as ReactDOM from 'react-dom/client';

import App from './App';
import { Provider } from 'react-redux';
import { store } from './store';
import './index.less';

const root = ReactDOM.createRoot(document.getElementById('root')!);
// v18 的新方法
root.render(
  <Provider store={store}>
    <App />
  </Provider>,
);
